<template>
  <div>
    <elm-page-tb>
      <template #top>
        <el-input placeholder="请查询输入内容" size="mini" prefix-icon='el-icon-search' style="width:250px;" v-model="postData.name" clearable></el-input>
        <right>
          <el-button-group>
            <el-button icon="el-icon-search" size="mini" @click="tablebinding()">查询</el-button>
            <elm-open-button url="after_sales_edit" title="新增"  width="900" height="90%">新增</elm-open-button>
          </el-button-group>
        </right>
      </template>
      <elm-table url="/business/my/business/GetAsByUser" :post-data="postData">
        <el-table-column prop="kh_name_mc" label="客户"  align="left" header-align="center"  width="200"></el-table-column>
        <el-table-column prop="kn_lxdh" label="联系电话" align="center"  width="120"></el-table-column>
        <el-table-column prop="shqq" label="客户请求" align="left" header-align="center"  width="200"></el-table-column>
        <el-table-column prop="wtms" label="问题描述" align="left" header-align="center"  width="200"></el-table-column>
        <el-table-column prop="qqsj" label="请求时间" align="center" width="180"  :formatter="formatDateTime"></el-table-column>
        <el-table-column prop="jdsj" label="接待时间" align="center"  width="180"  :formatter="formatDateTime"></el-table-column>
        <el-table-column prop="wcsj" label="处理完成时间" align="center"  width="180"  :formatter="formatDateTime"></el-table-column>
        <el-table-column prop="zt" label="状态" align="center"  width="80"></el-table-column>
        <el-table-column prop="jjfa" label="解决方案" align="left" header-align="center"  width="200"></el-table-column>
        <el-table-column prop="fwr_mc" label="服务人员" align="center"   width="120"></el-table-column>
        <el-table-column prop="fwjg" label="服务结果" align="left" header-align="center" width="150"></el-table-column>
        <el-table-column prop="myd" label="满意度" align="center" width="120"></el-table-column>
        <el-table-column prop="fwlx" label="服务类型" align="center"  width="150"></el-table-column>
        <el-table-column prop="remark" label="备注" align="left" header-align="center"></el-table-column>
        <el-table-column fixed="right" label="操作" width="120px" align="center">
          <template v-slot="scope">
            <elm-open-button url="after_sales_edit" title="编辑"   width="900" height="90%" :data="{ model: scope.row }" type="text">编辑</elm-open-button>
            <elm-delete-button  type="text" size="mini" url="/business/my/business/DeleteAs" :data="{ id: scope.row.id }">删除</elm-delete-button>
          </template>
        </el-table-column>
      </elm-table>
    </elm-page-tb>
  </div>

</template>

<script>
export default {
  extends: elmVueBase,
  data() {
    return {
      postData: { name: null}
    }
  },
  created() {
  },
  methods: {
  }
}
</script>
